//package com.orange.cloud.common.component;
//
//import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.ibatis.reflection.MetaObject;
//import org.springframework.stereotype.Component;
//
//import java.time.LocalDateTime;
//
///**
// * @Authoer Administrator
// * @Descrption  mybatis plus 字段数据填充
// * @Date 2021/2/6 19:44
// */
//@Slf4j
//@Component
//public class CommonFillDataMetaObjectHandler implements MetaObjectHandler {
//    @Override
//    public void insertFill(MetaObject metaObject) {
//        this.strictInsertFill(metaObject, "createTime", LocalDateTime.class, LocalDateTime.now());
//        this.strictInsertFill(metaObject, "updateTime", LocalDateTime.class, LocalDateTime.now());
//        this.strictInsertFill(metaObject, "operator", String.class, "sys");
//    }
//
//    @Override
//    public void updateFill (MetaObject metaObject){
//        this.strictInsertFill(metaObject, "updateTime", LocalDateTime.class, LocalDateTime.now());
//        this.strictInsertFill(metaObject, "operator", String.class, "sys");
//    }
//
//}